<template lang="html">
  <div class="" id="">
    <!--滑动区域-->
		<div id="mescroll" class="mescroll">
			<!--展示上拉加载的数据列表-->
      <ul class="locklist" id="dataList">
        <li v-for="items in pdlist" :key="items.key">
          <div class="">
            <span>密码开锁</span>
            <em>{{items.lockTime}}</em>
          </div>
          <p>{{lockInfo.provinceName}}
            {{lockInfo.cityName}}
            {{lockInfo.districtName}}
            {{lockInfo.address}}
            {{lockInfo.communityName}}</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import MeScroll from 'mescroll.js';
export default {
  name:'',
  data: () =>({
    mescroll: null,
    pdlist: [],
    lockInfo:'',
  }),
  methods: {

  },
  mounted() {
    //do something after mounting vue instance
    let self = this;
    let houseId = this.$route.query.houseId;
    // 获取临时密码
    network.get(configUrl.TEMPORARYLOCK_URL,{houseId:houseId},function(res){
      console.log(res);
    },function(err){
      console.log(err);
    },function (resCode) {    //返回code 除200和401以外的其他值
      setTimeout(function() {
        self.$router.go(-1);
      },300);
    });
  },
}
</script>

<style lang="scss" scoped>
.locklist li{
  @include flex;

}
</style>
